/*
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-09-14 12:31:39
 * @LastEditors: 卡卡 1071780426@qq.com
 * @LastEditTime: 2023-09-22 12:41:48
 * @FilePath: \mould\src\components\BehaViorManage\workYear\regexDetail.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export default {

    //工作计划信息新增options
    formObj: [{
        input: true, //是input
        label: "现场工作人", //字段
        prop: "fOnworkname", //字段名
        width: 24, //参考el-col
        disabled: true, //是否禁用
        rules: [{
            required: true,
            message: '现场工作人不能为空'
        }] //验证
    },
    {
        datePicker: true, //是input
        label: "填报日期", //字段
        prop: "fReportdates", //字段名
        width: 24, //参考el-col
        disabled: true, //是否禁用
        rules: [{
            required: true,
            message: '请选择填报日期'
        }] //验证
    },
    {
        select: true, //是input
        label: "巡查项目部", //字段
        prop: "fCheckproject", //字段名
        width: 24, //参考el-col
        disabled: false, //是否禁用
        placeholder: "请选择巡查项目部",
        options: [],
        rules: [{
            required: true,
            message: '请选择巡查项目部'
        }] //验证
    },
    {
        datePicker1: true, //是input
        label: "现场工作日期", //字段
        prop: "fOnworkdates", //字段名
        width: 24, //参考el-col
        disabled: true, //是否禁用
        rules: [{
            required: true,
            message: '请选择现场工作日期'
        }] //验证
    },
    {
        selects: true, //是input
        label: "是否代岗", //字段
        prop: "fIspost", //字段名
        width: 24, //参考el-col
        disabled: false, //是否禁用
        placeholder: "请选择是否代岗",
        options: [{
                label: "否",
                value: "否",
            },
            {
                label: "是",
                value: "是",
            }
        ],
        rules: [{
            required: true,
            message: '请选择是否代岗'
        }] //验证
    },
    {
        input: true, //是input
        label: "质量网格类别", //字段
        prop: "fQualitygridclass", //字段名
        width: 24, //参考el-col
        disabled: true, //是否禁用
        rules: [{
            required: true,
            message: '质量网格类别不能为空'
        }] //验证
    },
    {
        input: true, //是input
        label: "责任人姓名", //字段
        prop: "fChargeusername", //字段名
        width: 24, //参考el-col
        disabled: true, //是否禁用
        rules: [{
            required: true,
            message: '责任人姓名不能为空'
        }] //验证
    },
    {
        input: true, //是input
        label: "职务", //字段
        prop: "fDuty", //字段名
        width: 24, //参考el-col
        disabled: true, //是否禁用
        rules: [{
            required: true,
            message: '职务不能为空'
        }] //验证
    },
    {
        textarea: true, //是input
        label: "现场工作情况", //字段
        prop: "fOnworkdetail", //字段名
        width: 24, //参考el-col
        disabled: false, //是否禁用
        rules: [{
            required: true,
            message: '现场工作情况不能为空'
        }] //验证
    },
    {
        label: "现场工作照片", //字段
        prop: "fOnworkfile", //字段名
        width: 24, //参考el-col
        disabled: false, //是否禁用
        upload: true,
        uploadSelect: true,
        uploadObj: {
            fileType: "2001",
            limit: 8, //上传长度限制
            hideUpload: false, //是否隐藏上传框
        },
        rules: [{
            required: true,
            message: '请上传现场工作照片'
        }] //验证
    },
    {
        input: true, //是input
        label: "经度", //字段
        prop: "fLongitude", //字段名
        width: 24, //参考el-col
        disabled: false, //是否禁用

    },
    {
        input: true, //是input
        label: "纬度", //字段
        prop: "fLatitude", //字段名
        width: 24, //参考el-col
        disabled: false, //是否禁用

    },

],
    dialog_config: {
        imgKeyWord: "url",
        fileKeyWord: "url",
        fileName: "fFileName",
        dialogHeight: '',
        thead: [{
                label: "现场工作日期",
                prop: "fOnworkdates",
                minWidth: "80px",
                align: "center",
            },
            {
                label: '责任人',
                prop: 'fChargeusername',
                minWidth: '80px',

                align: "center",

            },
            {
                label: "职务",
                prop: "fDuty",
                minWidth: "80px",
                align: "center",
            },

            {
                label: "是否代岗",
                prop: "fIspost",
                minWidth: "85px",
                align: "center",
            },


        ],
        isCheckBox: false,
        isIndex: true,
        isOperation: true,
        // 表格操作列
        operation: {
            label: '操作',
            width: '70',
            detail: true,
            prop: true,
            cols: [],

        },
    },

}